<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ChangePassword.aspx.vb" Inherits="MIMS_WRS.Web.ChangePassword" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>ChangePassword</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<link href="../style_h.css" rel="stylesheet" type="text/css">
		<script language="javascript" src="../Js/popcalendar.js"></script>
		<script language="javascript" src="../Js/common.js"></script>
		<script language="JavaScript" src="../js/function.js" type="text/JavaScript"></script>
		<script language="javascript">
		function btnSave_onclick()
		{
			var txtOldPass = window.document.getElementById('txtOldPassword');
			var txtNewPass = window.document.getElementById('txtNewPassword');
			var txtRetypePass = window.document.getElementById('txtRetypePassword');
			
			if(txtOldPass.value.length == 0)
			{
				alert('Old password is not blank');
				return false;
			}
			if(txtNewPass.value.length == 0)
			{
				alert('New password is not blank');
				return false;
			}
			if(txtRetypePass.value.length == 0)
			{
				alert('Retype password is not blank');
				return false;
			}
			return true;
		}		
		
		function body_onload() {
			
			if (window.document.getElementById('btnSave'))
				window.document.getElementById('btnSave').onclick = btnSave_onclick;				
		}
		</script>
	</HEAD>
	<body leftMargin="0" topMargin="0" MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td align="center"><table width="400" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="37"></td>
								<td align="center"><img src="../images/title-header.gif" width="369"></td>
								<td width="37"></td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td width="369" align="center" class="txthighlight"><table border="0" cellpadding="0" cellspacing="0">
										<tr>
											<td><img src="../images/gocpw_tl.gif" width="32" height="28"></td>
											<td width="100%" background="../images/bgpw_top.gif"><img src="../images/bgpw_top.gif" width="1" height="28"></td>
											<td><img src="../images/gocpw_tr.gif" width="32" height="28"></td>
										</tr>
										<tr>
											<td width="37" background="../images/bgpw_left.gif">&nbsp;</td>
											<td align="center">
												<span class="txthighlight"><asp:label CssClass="hightlightred" id="lblErr" runat="server"></asp:label><br><asp:comparevalidator id="CompareValidator1" runat="server" ControlToCompare="txtNewPassword" ControlToValidate="txtRetypePassword"
														ErrorMessage="New password and retype password must match"></asp:comparevalidator></span><br>
												<table border="0" cellspacing="0" cellpadding="3">
													<tr>
														<td height="25" align="right" nowrap class="txtnormal"><strong>Old Password:</strong></td>
														<td nowrap><asp:textbox id="txtOldPassword" runat="server" TextMode="Password" CssClass="txtnormal" style="WIDTH:80%"></asp:textbox>
															<strong class="hightlightred">*</strong>
														</td>
													</tr>
													<tr>
														<td align="right" class="txtnormal"><strong>New Password:</strong></td>
														<td><asp:textbox id="txtNewPassword" runat="server" TextMode="Password" CssClass="txtnormal" style="WIDTH:80%"></asp:textbox>
															<strong class="hightlightred">*</strong>
														</td>
													</tr>
													<tr>
														<td align="right" nowrap class="txtnormal"><strong>New Retype Password:</strong></td>
														<td><asp:textbox id="txtRetypePassword" runat="server" TextMode="Password" CssClass="txtnormal" style="WIDTH:80%"></asp:textbox>
														<strong class="hightlightred">
																*</strong>
														</td>
													</tr>
													<tr align="left">
														<td>&nbsp;</td>
														<td>
															<asp:Button id="btnSave" runat="server"  text=Save ></asp:Button>
															<script event="onclick" for="btnSave">													
																if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate();																	
																return btnSave_onclick();																																	
															</script>
															<asp:Button id="btnCancel" runat="server" CausesValidation="False" text="Cancel"></asp:Button>
														</td>
													</tr>
												</table>
											</td>
											<td background="../images/bgpw_right.gif">&nbsp;</td>
										</tr>
										<tr>
											<td background="../images/bgpw_left.gif">&nbsp;</td>
											<td align="center" class="txtsmall"><asp:label id="lblComment" runat="server"></asp:label></td>
											<td background="../images/bgpw_right.gif">&nbsp;</td>
										</tr>
										<tr>
											<td width="37"><img src="../images/gocpw_bl.gif" width="32" height="32"></td>
											<td background="../images/bgpw_bottom.gif"><img src="../images/bgpw_bottom.gif" width="1" height="30"></td>
											<td width="37"><img src="../images/gocpw_br.gif" width="32" height="32"></td>
										</tr>
									</table>
								</td>
								<td>&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
